import { createRouter, createWebHashHistory } from 'vue-router'

const routes: any[] = [
  {
    path: '/',
    redirect: '/layout',
    component: () => import('../view/login/start.vue')
  },
  {
    path: '/layout',
    name: 'layout',
    component: () => import('../view/index.vue'),
    children: [
      {
        path: '',
        name: 'start',
        component: () => import('../view/login/start.vue')
      }
    ]
  },
  {
    path: '/follow-window',
    name: 'follow-window',
    component: () => import('../view/followWindow/index.vue')
  }
]
const router = createRouter({
  history: createWebHashHistory(),
  routes
})
export default router
